'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _reactRouterRedux = require('react-router-redux');

var _reduxThunk = require('redux-thunk');

var _reduxThunk2 = _interopRequireDefault(_reduxThunk);

var _promiseMiddleware = require('./promiseMiddleware');

var _promiseMiddleware2 = _interopRequireDefault(_promiseMiddleware);

var _errorMiddleware = require('./errorMiddleware');

var _errorMiddleware2 = _interopRequireDefault(_errorMiddleware);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var middlewares = [_errorMiddleware2.default, _reduxThunk2.default, _promiseMiddleware2.default];

/**
 * 向外提供的middlewar包括：routerMiddleware, errorMiddleware，promiseMiddleware, thunkMiddleware
 * @namespace middlewares
 * @memberOf fe-lib
 */
exports.default = {
  routerMiddleware: _reactRouterRedux.routerMiddleware,
  promiseMiddleware: _promiseMiddleware2.default,
  thunkMiddleware: _reduxThunk2.default,
  errorMiddleware: _errorMiddleware2.default,
  middlewares: middlewares
};